package com.zhangchuchu.neohealth.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zhangchuchu.neohealth.entity.Article;

import java.util.List;

public interface ArticleService extends IService<Article> {

    IPage<Article> getArticles(int page, int size);

    List<Article> getTop4Articles();

    boolean likeArticle(Integer userId, Integer articleId);

    Article getById(Integer id);
}
